<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<title>AxGrid Test</title>
	<style type="text/css">
		@import "../../../../style/include.css";		
	</style>
	
	<script type="text/javascript" src="../../../dojoroot/dojo/dojo.js" djConfig="isDebug: true, parseOnLoad: true"></script>
	<script type="text/javascript">
		dojo.require("dojo.parser");
		dojo.registerModulePath("mydojo", "../../mydojo");
		
		dojo.require("mydojo.dijix.AxGrid");		
		dojo.require("dijit.layout.BorderContainer");		
		dojo.require("dijit.form.Button"); 
		function dos(){
			dijit.byId("mydlg").renderGrid([ [1,12,12,12,"adsf"],[2,32,5454,23,"asfd"],[3,12,12,12,"adsf"],[4,32,5454,23,"asfd"],[5,12,12,12,"adsf"],[6,32,5454,23,"asfd"] ]);
		}
		
		function clear(){
			dijit.byId("mydlg").clearGrid();
		}	
		function addRow(){
			dijit.byId("mydlg").addRow([[1,12,12,12,"adsf"]]);
		}
		
		function addRows(){
			dijit.byId("mydlg").addRow([[1,12,12,12,"adsf"],[2,32,5454,23,"asfd"]]);
		}
		function reStruct(){
			dijit.byId("mydlg").reStruct([	{name: 'Account' }, 
						{name: 'Amount' }, 
						{name: 'Interest' }, 
						{name: 'Phone'}, 
						{name: 'E-Mail'}]
					  );
		}
	</script>
</head>
<body class="mobee">

<div id="root" dojoType="dijit.layout.BorderContainer" style="width:100%;height:100%">
	<div id='top' dojoType="dijit.layout.ContentPane" region="top" style="height:60px">
		<B>DbGrid Test</B><br>
		<div id = 'btt1' dojoType="dijit.form.Button" onClick="dos()" label="Populate Grid" style="height:25px"></div>
		<div id = 'btt2' dojoType="dijit.form.Button" onClick="clear()" label="Clear Grid" style="height:25px"></div>
		<div id = 'btt3' dojoType="dijit.form.Button" onClick="addRow()" label="Add Row" style="height:25px"></div>
		<div id = 'btt4' dojoType="dijit.form.Button" onClick="addRows()" label="Add Rows" style="height:25px"></div>
		<div id = 'btt5' dojoType="dijit.form.Button" onClick="reStruct()" label="ReStruct" style="height:25px"></div>
	</div>
	<div id='mydlg' dojoType="mydojo.dijix.AxGrid" region="center" title="Ctrl+F5 in Firefox will clear the cache and reloads the page"></div>
</div>
</body>
</html>